$OpenBSD: patch-win_tty_termcap_c,v 1.2 2010/05/19 07:34:43 espie Exp $
--- win/tty/termcap.c.orig	Wed Sep 25 02:37:10 1996
+++ win/tty/termcap.c	Wed May 19 09:29:56 2010
@@ -821,13 +821,14 @@ init_hilite()
 {
 	register int c;
 	char *setf, *scratch;
-	extern char *tparm();
 
 	for (c = 0; c < SIZE(hilites); c++)
 		hilites[c] = HI;
 	hilites[CLR_GRAY] = hilites[NO_COLOR] = (char *)0;
 
-	if (tgetnum("Co") < 8 || (setf = tgetstr("Sf", (char **)0)) == (char *)0)
+	if (tgetnum("Co") < 8
+	    || ((setf = tgetstr("Sf", (char **)0)) == (char *)0
+		&& (setf = tgetstr("AF", (char **)0)) == (char *)0))
 		return;
 
 	for (c = 0; c < CLR_MAX / 2; c++) {
